{literal}
<script type="text/javascript">
	function showCHELP(idA)
	{
		var chkMENUHELP = document.getElementById(idA);
		if (chkMENUHELP.style.display == "none")
			document.getElementById(idA).style.display="";
		else
			document.getElementById(idA).style.display="none";
	}
</script>
{/literal}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{if $sBoxName == 'inbox'}{language text='crush_inbox'}{else}{language text='crush_sentbox'}{/if}</td>
				</tr>
			</table>

{if $aMessenger.0}
{$sDescription}
<br /><br />
{/if}
<div style="padding-left: 30px; font-size: 10pt;"><b>{messages block='Crush'}</b></div>
{if $sBoxName == 'inbox'}
<br />
<a href="javascript:showCHELP('hidecrush');" class="link_description">{language text="what_is_a_crush_alert"}</a>
<div id="hidecrush" style="display: none;">
	<div style="padding-left: 10px;">{$sCrushHelp}</div>
</div>
<br /><br />
{/if}
{if $aMessenger.0}
<!-- Start page navigation info -->
{language text="viewing_181"} <b>{$aPaging.fromRow}</b> - <b>{$aPaging.toRow}</b> {language text="out_of_662"} <b>{$aPaging.totalRows}</b> {if $sBoxName == 'sentbox'}{language text="sent"} {/if}{language text="crush_alert_s"}
<!-- End page navigation info -->
<br /><br />
<!-- Start inbox messages -->
<form name="myform" action="{$sUrl}" method="post">
<!-- @TODO send notification? <div><input name="sendback" value="?action=comment" type="hidden"></div>-->
{foreach from=$aMessenger item=aItem name=Mess}
<table style="width: 100%; margin-bottom: 3px;" class="border13" cellpadding="2" cellspacing="2">
<tbody>

    <tr>
        <td style="font-size: 8pt; width: 5%; text-align: center;" class="color">
            <input name="id[]" value="{$aItem.id}" type="checkbox">
        </td>
        <td style="font-size: 8pt; width: 15%; text-align: center;">
            <img src="{$aItem.title}" alt="" height="50" width="50">
        </td>
        <td style="font-size: 8pt; width: 80%;">
            <span style="font-size: 10pt;"><b>{$aPaging.fromRow+$smarty.foreach.Mess.iteration-1}.</b>
            <a class="link_description" href="{url link=$sUrlView crush=$aItem.id}">{language text="crush_alert"}
                <span style="font-size: 8pt;"> [ {$aItem.seen} ]</span>
            </a>
            </span>
            <br /><br />
            {if $aItem.seen == 'GUESSED'}
            <b>{language text="sent_from"}:</b> {$aItem.from}
            <br />
            {/if}
            {if $sBoxName == 'sentbox'}
            <b>{language text="sent_to"}:</b> {$aItem.to}
            <br />
            {/if}
            {language text="sent_on"} {$aItem.time|date_format:$sDateFormat}
        </td>
    </tr>
</tbody>
</table>
{/foreach}
<br />
<br />
{include file="$sMainTemplatePath/_blocks/pager.html"}
<br />
<br />
<input value="   {language text="delete_alert_s"}   " type="submit" name=act[DelCrush] onclick="if(checkEmpty()) return confirm('{language text="are_you_sure_that_you_want_to_delet"}'); else return false;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
<span style="padding-left: 10px;"><a class="link_action" href="javascript:void(0);" onclick="sel();">[ {language text="check_all"} ]</a></span>
</form>
<!-- End inbox messages -->
{else}
<br />
<div class="message_info">{language text="there_are_no_messages_yet"}</div>
<br />
{/if}

		</td>
	</tr>
</table>